import turtle

for x in range(0,360,30):
    turtle.lt(x)
    turtle.fd(200)
    turtle.write(x)
    turtle.home()
    
    
turtle.home()  
for x in range(0,180,30):
   
    turtle.backward(200)
    turtle.write(x)
    turtle.rt(x)